package com.online.music.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.online.music.entity.po.Song;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.online.music.entity.vo.SongPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: Leno
 * @Date: 2025-01-31
 * @Description: SongMapper
 */
@Mapper
public interface SongMapper extends BaseMapper<Song> {
    Page<SongPageVo> findPage(Page<Song> page, @Param("ew") QueryWrapper<Song> qw);

    List<Song> selectPlayListSongs(@Param("id") Long id, @Param("name") String name);
}

